#pragma once

#include <boost/circular_buffer.hpp>

struct PendingMarket;

class PriceChangeChecker
{
	struct PriceAndTime
	{
		PriceAndTime(int p,__int64 t)
			:price(p),time(t)
		{
		}
		int price;
		__int64 time;
	};
public:
	PriceChangeChecker(int minPriceUnit,int maxTime,int marketCount,int changeQuantity);
	bool IsBuyBigChange(int price);
	bool IsSellBigChange(int price);
private:

	int m_marketCount;
	int m_maxTime;
	int m_changePriceBalance;

	typedef boost::circular_buffer<PriceAndTime> PriceAndTimes;
	PriceAndTimes m_buyPrices;
	PriceAndTimes m_sellPrices;
};